﻿<%@ Page Language="C#" MasterPageFile="~/LTR/MlyLtrMaster.Master" 
AutoEventWireup="true" CodeBehind="Organizations.aspx.cs" Inherits="MLY.LTR.Organizations" Title='<%$Dict:Organizations.Title%>' %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataSourceID="ObjectDataSource1" CellPadding="3" BackColor="White" 
    BorderColor="#999999" BorderStyle="None" BorderWidth="1px" 
    GridLines="Vertical" Width="100%" AllowPaging="True" 
        >
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <Columns>
        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
            <HeaderTemplate>  
            <asp:HyperLink ID="HyperLinkAddNew" runat="server" NavigateUrl="<%#String.Format(&quot;FormsMly/OrganizationDetails.aspx?OrganizationId=-1&quot;)%>">
                        <asp:Image ID="imgAddNew" runat="server" ImageUrl="~/Images/imgbtnAdd.png" />
                    </asp:HyperLink>              
            </HeaderTemplate>
            <ItemTemplate>                
                <asp:HyperLink ID="HyperLinkOpen" runat="server" NavigateUrl="<%#String.Format(&quot;FormsMly/OrganizationDetails.aspx?OrganizationId={0}&quot;,Eval(&quot;OrganizationId&quot;))%>">
                    <asp:Image ID="imgOpen" runat="server" ImageUrl="~/Images/Magnifier.png" />
                </asp:HyperLink>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:TemplateField>
            <asp:BoundField DataField="OrganizationId" HeaderText='<%$Dict:Organizations.OrganizationId %>' 
                SortExpression="OrganizationId" Visible="false"/>
            <asp:BoundField DataField="OrganizationName" HeaderText='<%$Dict:Organizations.OrganizationName %>'
                SortExpression="OrganizationName" />
            <asp:BoundField DataField="Address" HeaderText='<%$Dict:Organizations.Address %>'
                SortExpression="Address" />
            <asp:BoundField DataField="ContactPerson" HeaderText='<%$Dict:Organizations.ContactPerson %>'
                SortExpression="ContactPerson" />
            <asp:BoundField DataField="ContactPersonPhone" HeaderText='<%$Dict:Organizations.ContactPersonPhone %>' 
                SortExpression="ContactPersonPhone" />            
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetClients" TypeName="KBM.Bll.clsOrganization">
    </asp:ObjectDataSource>
</asp:Content>